home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000321_news@newsmaster….columbia.edu _Fri Jul 31 14:41:31 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA09923
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 31 Jul 1998 14:41:31 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA24567
  7.     for kermit.misc@watsun; Fri, 31 Jul 1998 14:41:30 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.sys.hp.hpux,comp.protocols.kermit.misc
  11. Subject: Re: International Character Set/HP-UX 10.20
  12. Date: 31 Jul 1998 18:41:25 GMT
  13. Organization: Columbia University
  14. Lines: 56
  15. Message-ID: <6pt34l$sdt$1@apakabar.cc.columbia.edu>
  16. References: <35C1FFE0.5AFD@fast.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.sys.hp.hpux:88446 comp.protocols.kermit.misc:9031
  19.  
  20. In article <35C1FFE0.5AFD@fast.net>, Chad  <wick@fast.net> wrote:
  21. : I received a text file from our Mexico facility.  In Notepad I can see
  22. : the Spanish characters.
  23. :
  24. Therefore the encoding is Windows Codepage 1252, "Windows Latin 1".
  25.  
  26. : I ftp'ed the file to our HP 9000/K260 running HP-UX 10.20.
  27. : When I VI the file, the Spanish characters are missing.
  28. The default character set in HP-UX for Spanish and other west European
  29. languages is HP-Roman8, which is like Latin-1, but with a different
  30. encoding.
  31.  
  32. Since FTP knows nothing about character sets, it did not perform the
  33. needed translation.
  34.  
  35. Solution: use a file transfer method that understands how to convert
  36. character sets, such as Kermit:
  37.  
  38.   http://www.columbia.edu/kermit/
  39.  
  40. C-Kermit is supplied with HP-UX.  The Kermit software for Windows 95/98/NT
  41. is Kermit 95:
  42.  
  43.   http://www.columbia.edu/kermit/k95.html
  44.  
  45. which can make Telnet, Rlogin, or regular serial connections to your HP
  46. server, using HP-2621 or HPTERM emulation (or any of about 35 others,
  47. including VT100, VT320, etc).  During a connection, you can initiate a
  48. file transfer.  The easiest way to do this is as follows:
  49.  
  50. Tell Kermit 95 that your local character set is Code Page 1252:
  51.  
  52.   set file character-set cp1252
  53.  
  54. (This is necessary because it might also have been an OEM code page,
  55. such as 850, and there is no way to tell automatically which one was used 
  56. to encode the file.)  Then make the connection, enter the terminal
  57. screen, and log in to HP-UX.
  58.  
  59. On the HP-UX server, type "kermit" to start C-Kermit.  At the C-Kermit>
  60. prompt, type:
  61.  
  62.   set file type text
  63.   set file character-set hp-roman8
  64.   get xxxx
  65.  
  66. where xxxx is the name of the file.  Kermit 95 automatically recognizes
  67. the "get" request and sends the file, and the character set is converted
  68. from the PC code page to HP-Roman8.
  69.  
  70. Of course many other conversions are also possible, and any supported
  71. character set may be established as your default (so you don't always have
  72. to give the "set file character-set" commands prior to transfer).
  73.  
  74. - Frank